package com.wzz.config;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

@Data
@Component
//@ConfigurationProperties(prefix = "oss.config")
public class OSSConfig {

    public boolean enable = true;

    public String endpoint = "oss-cn-hangzhou.aliyuncs.com";
                                //oss-cn-hangzhou.aliyuncs.com

    public String accesskeyid = "LTAI5tBwyFyMY2J2iNWqZ9pt";

    public String accesskeysecret = "nWIyJKn056GzJ5LLYkCrTvKyWpbp4z";

    public String bucketname = "blogxingchuan";

    public String key = "images/upload/";

//    public String host = "oss-cn-beijing.aliyuncs.com";

    public String host = "oss-cn-hangzhou.aliyuncs.com";

}
